package com.linkoog.devtools.http.request.common.response_body.text;

import com.linkoog.devtools.http.request.common.ResponseBodyType;
import com.linkoog.devtools.http.request.common.response_body.StringResponseBody;

public class XmlResponseBody extends StringResponseBody {

    public XmlResponseBody() {
    }

    public XmlResponseBody(String value) {
        this.value = value;
    }

    public static XmlResponseBody of(String value) {
        return new XmlResponseBody(value);
    }

    @Override
    public ResponseBodyType bodyType() {
        return ResponseBodyType.XML;
    }

    @Override
    public String toString() {
        return "XmlResponseBody{" +
                "value='" + value + '\'' +
                '}';
    }
}
